package org.deri.feather.common;

public class Element {

	protected String stringValue;
	private int type;
	
	public static int NO_TYPE = 0;
	public static int IRI_TYPE = 1;
	public static int LITERAL_TYPE = 2;
	
	public Element(String stringValue) {
		this.stringValue = stringValue;
		this.type = NO_TYPE;
	}
	
	public Element(String stringValue, int type) {
		this.stringValue = stringValue;
		this.type = type;
	}
	
	public String getStringValue() {
		return this.stringValue;
	}
	
	public int getElementType() {
		return this.type;
	}
	
	public boolean isIriElement() {
		if (this.type == IRI_TYPE)
			return true;
		return false;
	}
}
